﻿using System;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public class MenuBarMenuFactory : IMenuBarMenuFactory
    {
        public IMenuBarMenu CreateMenu(string text)
        {
            return this.CreateMenu(text, null);
        }

        public IMenuBarMenu CreateMenu(string text, SharedGenomics.Core.ICommand command)
        {
            return new MenuBarMenu() { Text = text ?? "", Command = command };
        }
    }
}
